﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.master" AutoEventWireup="true" CodeFile="Themsanphamgiamgia.aspx.cs" Inherits="Admin_Sanphamgiamgia_Themsanphamgiamgia" %>

<%@ Register assembly="CuteEditor" namespace="CuteEditor" tagprefix="CE" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style3
        {
            width: 100%;
        }
        .style4
        {
            height: 23px;
        }
        .style5
        {
            height: 23px;
            width: 100px;
        }
        .style6
        {
            width: 100px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:Label ID="Label1" runat="server" ForeColor="#FF3300" 
            Text="Thêm Sản Phẩm Giảm Giá" Font-Bold="True" Font-Size="X-Large" 
            style="text-align: center"></asp:Label>
    <br />
    <table class="style3">
        <tr>
            <td class="style5">
                Tên sản phẩm:&nbsp;&nbsp;</td>
            <td class="style4">
    <asp:TextBox ID="TextBox1" runat="server" TextMode="MultiLine"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="TextBox1" ErrorMessage="*" ForeColor="Red" 
                    ValidationGroup="1" SetFocusOnError="True"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style6">
                Giá gốc :</td>
            <td>
    <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="TextBox2" ErrorMessage="*" ForeColor="Red" 
                    ValidationGroup="1"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                    ControlToValidate="TextBox2" ErrorMessage="Bạn phải nhập số" ForeColor="Red" 
                    SetFocusOnError="True" ValidationExpression="\d*" ValidationGroup="1"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td class="style6">
                Giá bán:</td>
            <td>
    <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                    ControlToValidate="TextBox3" ErrorMessage="*" ForeColor="Red" 
                    ValidationGroup="1"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                    ControlToValidate="TextBox3" ErrorMessage="Bạn phải nhập số" ForeColor="Red" 
                    SetFocusOnError="True" ValidationExpression="\d*" ValidationGroup="1"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td class="style6">
                Phần trăm giảm:</td>
            <td>
    <asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                    ControlToValidate="TextBox4" ErrorMessage="*" ForeColor="Red" 
                    ValidationGroup="1"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" 
                    ControlToValidate="TextBox4" ErrorMessage="Bạn phải nhập số" ForeColor="Red" 
                    SetFocusOnError="True" ValidationExpression="\d*" ValidationGroup="1"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td class="style6">
                Ngày bắt đầu:&nbsp;&nbsp;&nbsp;</td>
            <td>
    <asp:Calendar ID="Calendar1" runat="server" BackColor="#FFFFCC" 
        BorderColor="#FFCC66" BorderWidth="1px" DayNameFormat="Shortest" 
        Font-Names="Verdana" Font-Size="8pt" ForeColor="#663399" Height="66px" 
        ShowGridLines="True" Width="150px">
        <DayHeaderStyle BackColor="#FFCC66" Font-Bold="True" Height="1px" />
        <NextPrevStyle Font-Size="9pt" ForeColor="#FFFFCC" />
        <OtherMonthDayStyle ForeColor="#CC9966" />
        <SelectedDayStyle BackColor="#CCCCFF" Font-Bold="True" />
        <SelectorStyle BackColor="#FFCC66" />
        <TitleStyle BackColor="#990000" Font-Bold="True" Font-Size="9pt" 
            ForeColor="#FFFFCC" />
        <TodayDayStyle BackColor="#FFCC66" ForeColor="White" />
    </asp:Calendar>
            </td>
        </tr>
        <tr>
            <td class="style6">
                Ngày kết thúc:&nbsp;&nbsp;</td>
            <td>
    <asp:Calendar ID="Calendar2" runat="server" BackColor="#FFFFCC" 
        BorderColor="#FFCC66" BorderWidth="1px" DayNameFormat="Shortest" 
        Font-Names="Verdana" Font-Size="8pt" ForeColor="#663399" Height="137px" 
        ShowGridLines="True" Width="95px">
        <DayHeaderStyle BackColor="#FFCC66" Font-Bold="True" Height="1px" />
        <NextPrevStyle Font-Size="9pt" ForeColor="#FFFFCC" />
        <OtherMonthDayStyle ForeColor="#CC9966" />
        <SelectedDayStyle BackColor="#CCCCFF" Font-Bold="True" />
        <SelectorStyle BackColor="#FFCC66" />
        <TitleStyle BackColor="#990000" Font-Bold="True" Font-Size="9pt" 
            ForeColor="#FFFFCC" />
        <TodayDayStyle BackColor="#FFCC66" ForeColor="White" />
    </asp:Calendar>
            </td>
        </tr>
        <tr>
            <td class="style6">
    Miêu tả:&nbsp;&nbsp;&nbsp;&nbsp;
            </td>
            <td>
    <CE:Editor ID="Editor1" runat="server">
    </CE:Editor> <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                    ControlToValidate="Editor1" ErrorMessage="*" ForeColor="Red" 
                    ValidationGroup="1"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style6">
                Loại sản phẩm:&nbsp;&nbsp;</td>
            <td>
&nbsp;<asp:DropDownList ID="DropDownList1" runat="server" 
        DataSourceID="LinqDataSource1" DataTextField="Ten_sploai2" 
        DataValueField="Id_sploai2">
    </asp:DropDownList>
    <asp:LinqDataSource ID="LinqDataSource1" runat="server" 
        ContextTypeName="DLL.luuliDataContext" EntityTypeName="" 
        TableName="sanpham_loai2s">
    </asp:LinqDataSource>
            </td>
        </tr>
        <tr>
            <td class="style6">
                Công ty:</td>
            <td>
                &nbsp;<asp:DropDownList 
        ID="DropDownList4" runat="server" 
        DataSourceID="LinqDataSource2" DataTextField="Ten_cty" 
        DataValueField="Id_cty">
    </asp:DropDownList>
    <asp:LinqDataSource ID="LinqDataSource2" runat="server" 
        ContextTypeName="DLL.luuliDataContext" EntityTypeName="" TableName="congties">
    </asp:LinqDataSource>
            </td>
        </tr>
        <tr>
            <td class="style6">
                Thể loại:&nbsp;&nbsp;</td>
            <td>
    <asp:DropDownList ID="DropDownList3" runat="server" 
        DataSourceID="LinqDataSource3" DataTextField="Ten_tloai" 
        DataValueField="Id_tloai">
    </asp:DropDownList>
    <asp:LinqDataSource ID="LinqDataSource3" runat="server" 
        ContextTypeName="DLL.luuliDataContext" EntityTypeName="" TableName="theloais">
    </asp:LinqDataSource>
            </td>
        </tr>
        <tr>
            <td class="style6">
                Hình:&nbsp;&nbsp;</td>
            <td>
&nbsp;<asp:FileUpload ID="FileUpload1" runat="server" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                    ControlToValidate="TextBox1" ErrorMessage="*" ForeColor="Red" 
                    ValidationGroup="1"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style6">
                &nbsp;</td>
            <td>
                <asp:Button ID="Button12" runat="server" onclick="Button12_Click" 
        Text="Thêm" ValidationGroup="1" />
    &nbsp;&nbsp;
    <asp:Button ID="Button11" runat="server" Text="Xóa" />
                &nbsp;&nbsp;</td>
        </tr>
    </table>
    &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <br />
    <br />
    &nbsp;
    <br />
    <br />&nbsp;<br />&nbsp;
    <br />
&nbsp;<br />
    <br />
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;<br />
    <br />
&nbsp;&nbsp;
    <br />
</asp:Content>

